package com.unittec.drainage.provider.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.unittec.drainage.provider.root.EntityRoot;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Jason
 * @date 2021/8/11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "waterhead_fee_collection")
public class WaterheadFeeCollection extends EntityRoot implements Serializable {

    private static final long serialVersionUID = -5807301652971085674L;

    /**
     * 水源类型(1=自备水源，2=建筑水源)
     */
    @TableField(value = "waterhead_type")
    private String waterheadType;

    /**
     * 水源用户id
     */
    @TableField(value = "waterhead_user_id")
    private String waterheadUserId;

    /**
     * 应收月份
     */
    @TableField(value = "receivable_month")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM")
    private Date receivableMonth;

    /**
     * 应收日期
     */
    @TableField(value = "receivable_date")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receivableDate;

    /**
     * 用水量
     */
    @TableField(value = "water_consumption")
    private BigDecimal waterConsumption;

    /**
     * 排水量
     */
    @TableField(value = "water_discharge")
    private BigDecimal waterDischarge;

    /**
     * 污水费单价
     */
    @TableField(value = "water_price")
    private BigDecimal waterPrice;

    /**
     * 污水费金额
     */
    @TableField(value = "water_money")
    private BigDecimal waterMoney;

    /**
     * 应收金额
     */
    @TableField(value = "receivable_water_money")
    private BigDecimal receivableWaterMoney;

    /**
     * 实收金额
     */
    @TableField(value = "receipts_water_money")
    private BigDecimal receiptsWaterMoney;

    /**
     * 欠收金额
     */
    @TableField(value = "arrears_water_money")
    private BigDecimal arrearsWaterMoney;

    /**
     * 是否缴费(0=否，1=是)
     */
    @TableField(value = "is_pay")
    private String isPay;

    /**
     * 是否冲正(0=否，1=是)
     */
    private String isRighting;

    /**
     * 实收日期
     */
    @TableField(value = "receipts_date")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receiptsDate;

    /**
     * 实收人员id
     */
    @TableField(value = "receipts_by")
    private String receiptsBy;

    /**
     * 实收人员名称
     */
    @TableField(value = "receipts_name")
    private String receiptsName;

}